/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-11-28     Titan       the first version
 */
#ifndef PACKAGES_LEDBLINK_LATEST_LEDBLINK_USER_H_
#define PACKAGES_LEDBLINK_LATEST_LEDBLINK_USER_H_

#include "ledblink.h"

enum LEDUSER{
    BLED1_FUNC = 1,
    BLED2_L_SIN,
    BLED3_R_SIN,
    BLED4_REHOME,
    BLED5_L,
    BLED6_R,
    BLED_COM,
    BLED_ERR,
    BLED_RUN,
    BLED_GRE_BOARD,
    BLED_RED_BOARD,

    BLED_MAX,
};

/*ledblink使用*//*
#define BLED_GRE_BOARD   11
#define BLED_RED_BOARD   10
#define BLED_COM     9
#define BLED_ERR     8
#define BLED_RUN     7
#define BLED1_FUNC   1
#define BLED2_L_SIN  2
#define BLED3_R_SIN  3
#define BLED4_REHOME 4
#define BLED5_L      5
#define BLED6_R      6*/

void bled_on(enum LEDUSER led);
void bled_off(enum LEDUSER led);
void bled_delay(enum LEDUSER led, int time);
void bled_blink(enum LEDUSER led, int ontime, int offtime);

#endif /* PACKAGES_LEDBLINK_LATEST_LEDBLINK_USER_H_ */
